import axios from 'axios'
import config from '../config'

class BaseApi {
  static req(meta, data = {}) {
    return axios({
      method: meta.method,
      url: config.apiPrefix + meta.url,
      params: meta.params,
    })
  }

}

export default BaseApi